package com.yixuan.mt.common.request;

import com.yixuan.mt.common.constant.EventsConstant;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class EventsRedisRequest {
    @NotEmpty(message = "事件名不能为空！")
    @Size(max = EventsConstant.EVENT_NAME_MAX_LENGTH, message = "事件名长度不能超过20！")
    private String name;
    @NotEmpty(message = "事件HOST不能为空！")
    @Size(max = EventsConstant.EVENT_HOST_MAX_LENGTH, message = "事件HOST长度不能超过200！")
    private String host;
    @NotEmpty(message = "事件端口不能为空！")
    private Integer port;
    private String password;
}
